package com.sunnada.edu.business.worker.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

@Service
@Transactional
public interface WorkerService {
	/***
	 * explain 总数量
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return int
	 */
	public int getWorkerCots(HashMap<String, String> params);

	/**
	 * explain 查询功能
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return List<?>
	 */
	public List<?> findWorkers(HashMap<String, String> params);
	
	
	/***
	 * explain 总数量
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return int
	 */
	public int getWorkerProjectCots(HashMap<String, String> params);
	public int getWorkerJcqkCots(HashMap<String, String> params);

	/**
	 * explain 查询功能
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return List<?>
	 */
	public List<?> findWorkerProjects(HashMap<String, String> params);
	public List<?> findWorkerJcqks(HashMap<String, String> params);

	/***
	 * explain 用户删除
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String workerDelete(HashMap<String, String> params);

	/**
	 * explain 用户添加保存
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String workerAdd(HttpServletRequest request,HashMap<String, String> params);

	/**
	 * explain 用户修改保存
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String workerUpdate(HttpServletRequest request,HashMap<String, String> params);

	/**
	 * explain 获得用户信息
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return Map
	 */
	public Map getWorkerByRecId(HashMap<String, String> params);



	/**
	 * explain 获得用户所有信息
	 * 
	 * @author zjc 2015-5-12 update zjc 2015-5-12
	 * @param params
	 * @return String[]
	 */
	public Map getWorker(HashMap<String, String> params);


	/**
	 * explain 密码重置保存
	 * 
	 * @author chs 2015-5-13 update chs 2015-5-13
	 * @param params
	 * @return String
	 */
	public String workerPwdReset(HashMap<String, String> params);

	/**
	 * 启用
	 * 
	 * @param params
	 * @return
	 */
	public String workerEnable(HashMap<String, String> params);

	/**
	 * 禁用
	 * 
	 * @param params
	 * @return
	 */
	public String workerDisable(HashMap<String, String> params);



	/**
	 * 按条件导出系统用户
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return List<?>
	 * @throws Exception
	 */
	public void exportWorker(HashMap<String, String> params, HttpServletRequest request, HttpServletResponse response) throws Exception;

	public String FileSave(MultipartFile file, HttpServletRequest request);
	
	public int selectWorkerCots(HashMap<String, String> params);

	public List<?> selectWorkers(HashMap<String, String> params);

	public List<?> getWorkerList(HashMap<String, String> params);

}
